#!/bin/env bash
mode=$1
case "$mode" in
  'start')
    # starting monitoring
    svc -u /service/masterha_test1
    ;;

  'stop')
    # stoping monitoring
    svc -d /service/masterha_test1
    ;;
    
  *)
      # usage
      basename=`basename "$0"`
      echo "Usage: $basename  {start|stop}"
      exit 1
    ;;
esac
